package com.haixinga.commbiz.mgr.ctrl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.haixinga.commbiz.commons.service.SysUserService;
import com.haixinga.commbiz.commons.vo.ApiRes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.haixinga.commbiz.commons.entity.SysUser;

/** 操作员列表 **/
@RestController
@RequestMapping("api/sysUsers")
public class SysUserController extends CommonCtrl{

	@Autowired
    SysUserService sysUserService;


	/** list */
	@RequestMapping(value="", method = RequestMethod.GET)
	public ApiRes list() {

		SysUser condition = getObject(SysUser.class);

		LambdaQueryWrapper<SysUser> queryWrapper = SysUser.gw();

		IPage<SysUser> pages = sysUserService.page(getIPage(), queryWrapper);

		return ApiRes.page(pages);
	}

}
